//package com.translate.web.api.manager.controller;
//
//import javax.servlet.http.HttpServletRequest;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.validation.annotation.Validated;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import com.jwt.JwtConfig;
//import com.jwt.JwtTokenUtil;
//import com.response.vo.ResponseModel;
//import com.translate.web.param.UpdateUserByManager;
//import com.translate.web.service.IUserManagerService;
//
///**
// * 管理员编辑员工信息
// * @author 111
// */
//@RestController()
//@RequestMapping("/manager/user")
//public class UserDataController {
//
//	private IUserManagerService managerService;
//	
//	private JwtTokenUtil jwtTokenUtil;
//	
//	private JwtConfig jwtConfig;
//
//	public UserDataController(IUserManagerService managerService) {
//		this.managerService = managerService;
//	}
//	
//	/**
//	 * 添加员工
//	 * @param updateUserByManager
//	 * @return
//	 */
//	@PostMapping("addStaff")
//	public ResponseModel<Integer> addStaff(@RequestBody @Validated AddUserByManager updateUserByManager, HttpServletRequest request) {
//		
//		updateUserByManager.setManagerId(jwtTokenUtil.getId(request.getHeader(jwtConfig.getHeader())));
//		
//		return ResponseModel.<Integer>success(this.managerService.addUserByManager(updateUserByManager));
//	}
//	
//	@PostMapping("/administratorEditUser")
//	public ResponseModel<Integer> administratorEditUser(@RequestBody @Validated UpdateUserByManager updateUserByManager) {
//		return ResponseModel.<Integer>success(this.managerService.updateUserByManager(updateUserByManager));
//	}
//	
//	@Autowired
//	public void setJwtConfig(JwtConfig jwtConfig) {
//		this.jwtConfig = jwtConfig;
//	}
//
//	
//	
//	@Autowired
//	public void setJwtTokenUtil(JwtTokenUtil jwtTokenUtil) {
//		this.jwtTokenUtil = jwtTokenUtil;
//	}
//}